package com.kunlun.system.dao;

import com.kunlun.system.model.DictionaryItemModel;
import com.kunlun.system.model.DictionaryValueModel;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface IDictionaryDao {

    List<DictionaryItemModel> getAllDictionaryItem(Map<String, Object> queryMap) throws Exception;

    int getDictionaryCount(Map<String, Object> queryMap) throws Exception;

    List<DictionaryValueModel> getAllDictionaryValue(Map<String, Object> queryMap) throws Exception;

    List<DictionaryValueModel> getValuesByDictCode(String dictCode) throws Exception;

    int getDictionarySubCount(Map<String, Object> queryMap) throws Exception;

    void insertDictionaryItem(DictionaryItemModel dictionaryItemModel) throws Exception;

    void insertDictionaryValue(DictionaryValueModel dictionaryModel) throws Exception;

    void updateDictionaryItem(DictionaryItemModel dictionaryItemModel) throws Exception;

    void updateDictionaryValue(DictionaryValueModel dictionaryModel) throws Exception;

    void deleteDictionaryItem(String ids) throws Exception;

    void deleteDictionaryValue(String ids) throws Exception;
}
